
//
//  MVClassModel.m
//  LuckyRadio
//
//  Created by JiaRui on 15/11/24.
//  Copyright © 2015年 chenjun. All rights reserved.
//

#import "MVClassModel.h"

@implementation MVClassModel
-(instancetype)initWithDictionary:(NSDictionary *)dictionary {
    self = [super init];
    if (self) {
        self.mvList = [NSMutableArray array];
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
-(void)setValue:(id)value forKey:(NSString *)key {
    if ([key isEqualToString:@"mvList"]) {
        
        for (NSDictionary *dic in value) {
            ListModel *model = [ListModel modelWithDictionary:dic];
            [self.mvList addObject:model];
        }
    }else {
        [super setValue:value forKey:key];
    }
}


@end
